<template>
  <page-form :x-uri="uri">
    <!-- 自定义tab -->
    <template v-slot:page-tabs>
      <tabs :course-id="courseId" :tabs="tabs" />
      <page-header :content="headerTitle" />
    </template>
  </page-form>
</template>

<script>
import PageForm from '@public/template/page_form.vue';
import Tabs from '../tabs';
import PageHeader from '@/components/page-header';
export default {
  components: {
    PageForm,
    Tabs,
    PageHeader
  },
  data() {
    return {
      uri: '/course/admin/exam/' + this.$route.params.id + '/' + this.$route.params.paper_id + '/edit',
      headerTitle: '编辑试卷',
      tabs: [
        {
          title: '编辑试卷',
          uri: '/course/exam/' + this.$route.params.id + '/' + this.$route.params.paper_id + '/edit'
          // meta: {
          //   permission: 'course.exam'
          // }
        }
      ]
    };
  },
  computed: {
    courseId() {
      console.log(this.$route.params.id);
      return this.$route.params.id;
    }
  }
};
</script>
